﻿@model BYSJ.Web.Models.huDongCeBian.CeBianJiHe
@{
    ViewBag.Title = "HuDong";
    Layout = "~/Views/Shared/base.cshtml";
}
@section TitleSection{
    河南中医药大学数据结构学习系统互动交流
}
@section  JsSection{
<script src="~/eduit/js/jquery.js"></script>
<script src="~/eduit/js/jquery-migrate-1.2.1.js"></script>
<script src="~/eduit/js/jquery.ui.js"></script>
<script src="~/eduit/js/jquery.validate.js"></script>
<script src="~/eduit/js/jquery.form.js"></script>
<script src="~/eduit/js/jquery.cookie.js"></script>
<script src="~/eduit/uEditor/uEditor.js"></script>
<script src="~/Scripts/hudong.js"></script>
<link href="~/eduit/css/smoothness/jquery.ui.css" rel="stylesheet" />
<link href="~/eduit/uEditor/uEditor.css" rel="stylesheet" />
<link href="~/Content/huDongempty.css" rel="stylesheet" />
}
@section bodycontent{
<div class="hudongzhuti">
    @*<div class="leftanswer">
        <div class="guanxin">
          <input type="text" placeholder="搜索你关心的问题" class="js-keyword" name="keyword" id="keyword">
          <a class="js-search" href=""></a>
        </div>
    </div>*@
    <div class="link_sendque">
        <button class="curr">我要提问</button>
    </div>
    @RenderSection("emptyhuifu", false)
    @RenderSection("huDonghuifu", false)
    @RenderSection("answer", false)
    @RenderSection("answeremptr", false)
    <div class="reightdaohang">
        <div id="accordion">
            <h3>热门提问</h3>
            <div>
                @foreach (var item in Model.huDongCeBian)
                {
                    <a class="cebianlan" href="/showAnswer/@Model.name/@item.id"><p>@Html.Raw(@item.content)</p></a>
                }
            </div>
            <h3>我的问题</h3>
            <div>
                @foreach (var item in Model.huDongCeBianTiWen)
                {
                    <a class="cebianlan" href="/showAnswer/@Model.name/@item.id"><p>@Html.Raw(@item.content)</p></a>
                }
            </div>
            <h3>我的回答</h3>
            <div>
                @foreach (var item in Model.huDongCeBianHufu)
                {
                    <a class="cebianlan" href="/showAnswer/@Model.name/@item.id">
                        <p>@Html.Raw(@item.content)</p>
                    </a>
                }
            </div>
        </div>
      </div>
</div>
    <!--提问对话框-->
<div class="modal-backdrop">
    <form id="question" method="post" action="/huDong/addAnswer" title="提问">
        <p>
            <label for="title">问题名称：</label>
            <input type="text" name="title" style="width:390px;" class="text" id="title" />
        </p>
        <p>
            <textarea class="uEditorCustom" name="content" placeholder="输入你的问题！！"></textarea>
        </p>
    </form>
    
    </div>
<div id="error">请登录后操作...</div>
}
